package com.tekj.cxqcb;

import android.os.Build;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Window;
import android.view.WindowManager;

import com.tekj.cxqcb.presenter.splash.SplashPresenterImpl;

import common.tool.StatusBarUtil;

/**
 * description 载入界面，闪屏一下
 * Created by JustTong on 2018/11/28.
 */
public class SplashActivity extends AppCompatActivity {

    private SplashPresenterImpl mImpl;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            Window window = this.getWindow();
            window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            StatusBarUtil.StatusBarLightMode(this);
        }


        mImpl = new SplashPresenterImpl();
        mImpl.startMainActivity(this);

    }

}
